package com.example.demo.controller;

import com.example.demo.service.DcClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Ray on 2018/10/22/022
 */
@RestController
public class ConsumerController {
    @Autowired
    private DcClient dcClient;

    @GetMapping("/consumer")
    public String dc() {
        return dcClient.dc();
    }

    @GetMapping("/consumer/add")
    public String add() {
        return dcClient.add();
    }

    @GetMapping("/consumer/test1")
    public String test1() {
        return dcClient.test1();
    }
}
